package com.chixing.day08.InterFaceDemo;


public class InterFaceTest {
    public static void main(String[] args) {
        String s1 = "gile";
        String s2 = "gdit";
        int result = s1.compareTo(s2);
        System.out.println(result);
        System.out.println('a' - 'b');

        Product pro1 = new Product("被子", 900, 5);
        Product pro2 = new Product("手机", 1000, 9999);
        int result2 = pro1.compareTo(pro2);
        System.out.println(result2);

    }
}
